package com.jrx.anytxn.param.service.account;

import com.jrx.anytxn.i18n.response.TxnPage;
import com.jrx.anytxn.common.exception.TxnException;
import com.jrx.anytxn.param.dto.account.SubjectSummaryInfoRes;

/**
 * 科目总账表 的service 接口
 *
 * @author Qingyao Xing
 * @date 2019/9/6 11:03
 */
public interface ISubjectSummaryInfoService {
    /**
     * 根据主键查询对象
     *
     * @param id       主键id
     * @param tenantId 租户ID
     * @return com.jrx.anytxn.accounting.dto.subjectsummary.SubjectSummaryInfoRes
     * @throws TxnException
     * @author Qingyao Xing
     * @date 2019/9/6 13:54
     */
    SubjectSummaryInfoRes getModalByIdAndTenId(Long id, String tenantId) throws TxnException;

    /**
     * 分页查询所有
     *
     * @param pageNum  页码
     * @param pageSize 条数
     * @param tenantId 租户ID
     * @return com.jrx.anytxn.common.data.TxnPage<com.jrx.anytxn.accounting.dto.subjectsummary.SubjectSummaryInfoRes>
     * @throws TxnException
     * @author Qingyao Xing
     * @date 2019/9/6 13:54
     */
    TxnPage<SubjectSummaryInfoRes> getPage(Integer pageNum, Integer pageSize, String tenantId,String beginDate,String endDate,String subjectId) throws TxnException;

}
